home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
hity wydania
/
trueSpace 7.6
/
tS761B8Std.exe
/
{app}
/
Scripts
/
ScriptCommands
/
Navigation.xml
< prev
next >
Wrap
Extensible Markup Language
|
2008-06-10
|
7KB
|
132 lines
<?xml version="1.0" encoding="utf-8" ?>
<SCRIPT Name="NavigationTools" Type="command" Description="navigation tools" GUID = "{2D05D7F8-6374-4cd7-A641-CAFD09C2AF95}">
<SCRIPT_CODE><![CDATA[
// This command creates toolbar with views for the rosetta
function Execute(ret)
{
Shelf = Node.Create('Windows Manager Package/Shelf', '/Windows Manager');
// *ih* Clear the flag for command WinMng.ShowShelf
Node.Value(Shelf, 'Visible') = 0;
// Show bitmaps
Node.Value(Shelf, 'MaxDim') = '2';
item_00 = Node.Create('Windows Manager Package/ShelfItem', Shelf);
Node.Value(item_00, 'Preview2D') = '0';
Node.Value(item_00, 'Preview3D') = '0';
Node.Value(item_00, 'Package') = '';
Node.Value(item_00, 'Command') = 'ToolMng.ActivateTool("{17D544A3-3F58-436B-83E7-F8B4D7D4E7C5}","{50375CE1-0581-4D3F-9801-1A610D4F9E2D}" )';
Node.Value(item_00, 'HelpText') = 'Select Tool';
Node.Value(item_00, 'Bitmap File') = 'object.bmp';
Node.Value(item_00, 'Name') = 'Select';
// Node.Value(item_00, 'Check Box') = 1; // *ih* make it check box
Node.Value(item_00, 'Radio Group') = 1; // *ih* make it radio button of group 1
Node.Rename(item_00,'SelectTool');
item_01 = Node.Create('Windows Manager Package/ShelfItem', Shelf);
Node.Value(item_01, 'Preview2D') = '0';
Node.Value(item_01, 'Preview3D') = '0';
Node.Value(item_01, 'Package') = '';
Node.Value(item_01, 'Command') = 'ToolMng.ActivateTool("{17D544A3-3F58-436B-83E7-F8B4D7D4E7C5}","{FFBC70E7-A438-4A25-AF30-386096B1F563}" )';
Node.Value(item_01, 'HelpText') = 'Move Tool';
Node.Value(item_01, 'Bitmap File') = 'moveobj.bmp';
Node.Value(item_01, 'Name') = 'Move';
Node.Value(item_01, 'Radio Group') = 1; // *ih* make it radio button of group 1
Node.Rename(item_01,'MoveTool');
item_02 = Node.Create('Windows Manager Package/ShelfItem', Shelf);
Node.Value(item_02, 'Preview2D') = '0';
Node.Value(item_02, 'Preview3D') = '0';
Node.Value(item_02, 'Package') = '';
Node.Value(item_02, 'Command') = 'ToolMng.ActivateTool("{17D544A3-3F58-436B-83E7-F8B4D7D4E7C5}","{E306A885-7D87-4F48-9207-F8C03841165B}" )';
Node.Value(item_02, 'HelpText') = 'Rotate Tool';
Node.Value(item_02, 'Bitmap File') = 'rotobj.bmp';
Node.Value(item_02, 'Name') = 'Rotate';
Node.Value(item_02, 'Radio Group') = 1; // *ih* make it radio button of group 1
Node.Rename(item_02,'RotateTool');
item_03 = Node.Create('Windows Manager Package/ShelfItem', Shelf);
Node.Value(item_03, 'Preview2D') = '0';
Node.Value(item_03, 'Preview3D') = '0';
Node.Value(item_03, 'Package') = '';
Node.Value(item_03, 'Command') = 'ToolMng.ActivateTool("{17D544A3-3F58-436B-83E7-F8B4D7D4E7C5}","{0BDD0AC3-4170-407B-ABA1-FED0292BB10F}" )';
Node.Value(item_03, 'HelpText') = 'Scale Tool';
Node.Value(item_03, 'Bitmap File') = 'scaleobj.bmp';
Node.Value(item_03, 'Name') = 'Scale';
Node.Value(item_03, 'Radio Group') = 1; // *ih* make it radio button of group 1
Node.Rename(item_03,'ScaleTool');
item_04 = Node.Create('Windows Manager Package/ShelfItem', Shelf);
Node.Value(item_04, 'Preview2D') = '0';
Node.Value(item_04, 'Preview3D') = '0';
Node.Value(item_04, 'Package') = '';
Node.Value(item_04, 'Command') = 'ToolMng.ActivateTool("{17D544A3-3F58-436B-83E7-F8B4D7D4E7C5}","{35104BFA-6452-4BFF-985D-36B1BF7CBB39}" )';
Node.Value(item_04, 'HelpText') = 'Mouse Tool';
Node.Value(item_04, 'Bitmap File') = 'mouse.bmp';
Node.Value(item_04, 'Name') = 'Mouse';
Node.Value(item_04, 'Radio Group') = 1; // *ih* make it radio button of group 1
Node.Rename(item_04,'MouseTool');
item_05 = Node.Create('Windows Manager Package/ShelfItem', Shelf);
Node.Value(item_05, 'Preview2D') = '0';
Node.Value(item_05, 'Preview3D') = '0';
Node.Value(item_05, 'Package') = '';
Node.Value(item_05, 'Command') = 'ToolMng.ActivateTool("{17D544A3-3F58-436B-83E7-F8B4D7D4E7C5}","{8C391B6C-47E9-4AC4-BE8C-EC611B15178C}" )';
Node.Value(item_05, 'HelpText') = 'Camera move tool';
Node.Value(item_05, 'Bitmap File') = 'CameraMove.bmp';
Node.Value(item_05, 'Name') = 'Camera Move';
Node.Value(item_01, 'Radio Group') = 1; // *ih* make it radio button of group 1
Node.Rename(item_05,'CameraMoveTool');
item_06 = Node.Create('Windows Manager Package/ShelfItem', Shelf);
Node.Value(item_06, 'Preview2D') = '0';
Node.Value(item_06, 'Preview3D') = '0';
Node.Value(item_06, 'Package') = '';
Node.Value(item_06, 'Command') = 'ToolMng.ActivateTool("{17D544A3-3F58-436B-83E7-F8B4D7D4E7C5}","{8F7BE0C3-7239-47B3-9F16-63910CEFA571}" )';
Node.Value(item_06, 'HelpText') = 'Camera rotate tool';
Node.Value(item_06, 'Bitmap File') = 'CameraRotate.bmp';
Node.Value(item_06, 'Name') = 'Camera Rotate';
Node.Value(item_01, 'Radio Group') = 1; // *ih* make it radio button of group 1
Node.Rename(item_06,'CameraRotateTool');
item_07 = Node.Create('Windows Manager Package/ShelfItem', Shelf);
Node.Value(item_07, 'Preview2D') = '0';
Node.Value(item_07, 'Preview3D') = '0';
Node.Value(item_07, 'Package') = '';
Node.Value(item_07, 'Command') = 'ToolMng.ActivateTool("{17D544A3-3F58-436B-83E7-F8B4D7D4E7C5}","{3308E440-3D3A-4C81-BA70-C120D680B225}" )';
Node.Value(item_07, 'HelpText') = 'Camera Fov tool';
Node.Value(item_07, 'Bitmap File') = 'CameraFov.bmp';
Node.Value(item_07, 'Name') = 'Camera Fov';
Node.Value(item_01, 'Radio Group') = 1; // *ih* make it radio button of group 1
Node.Rename(item_07,'CameraFovTool');
item_08 = Node.Create('Windows Manager Package/ShelfItem', Shelf);
Node.Value(item_08, 'Preview2D') = '0';
Node.Value(item_08, 'Preview3D') = '0';
Node.Value(item_08, 'Package') = '';
Node.Value(item_08, 'Command') = 'ToolMng.ActivateTool("{17D544A3-3F58-436B-83E7-F8B4D7D4E7C5}","{DCFD7125-9029-42ED-96AB-D39048AB876A}" )';
Node.Value(item_08, 'HelpText') = 'Phys Move tool';
Node.Value(item_08, 'Bitmap File') = 'PhysMoveObj.bmp';
Node.Value(item_08, 'Name') = 'Phys Move';
Node.Value(item_01, 'Radio Group') = 1; // *ih* make it radio button of group 1
Node.Rename(item_08,'PhysMoveTool');
// *ih* Set 2D dimension
WinMng.SetShelfDimension(Shelf, 2);
Node.Value(Shelf, 'MaxItemWidth') = 100;
Node.Value(Shelf, 'ItemWidth') = 100;
// *ih* Refresh shelf data
WinMng.RefreshShelf(Shelf,1,1);
// *ih* Show the shelf
WinMng.ShowShelf('', Shelf, 1);
Node.Rename(Shelf,'Navigation');
//WinMng.ShowShelves('Windows Manager', 0, 1); *ih*
//WinMng.ShowShelves('Windows Manager', 1, 1); *ih*
}
]]></SCRIPT_CODE>
</SCRIPT>